home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Persistent Floating Windows
- Sent: 7/3/96 10:28 AM
- Received: 7/3/96 10:41 AM
- From: Troy Gaul, tgaul@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >>If this is the ONLY way to keep a floating window open while using
- >>another part, then where do I get a chance to create the floating window
- >>for the part's main presentation and frame?
- >>
- >>My part is already embedded, and I want its main frame and presentation
- >>to belong in a floating window.
- >>
- >>Below are two places I tried:
- >>
- >>1) "View in Window" - My part does not receive this menu event, only from
- >>my own menus. If I can get this event from my part, I might call "new
- >>FW_CFloatingWindow()"
- >>
- >>2) CPart::MakeDocumentWindow() - only works if you open a part's
- >>stationery or wish to open the part in a new document window.
- >>
- >>Any ideas would be appreciated. Thanks!
- >
- >Try to do that in FrameAdded. ODF creates non-persistent frame for
- >Floating windows so you may have to recreate the floating window and
- >frame everytime the document is opened.
-
- I've been thinking about this, and it seems that you have a floating
- window which you don't want to act like a normal floating tool window.
- It would seem that you could create an ODF FW_CWindow object, and pass
- in, for the style parameter, that it's a floating window
- (FW_kFloatingWindow).
-
- This should create a window that can be persistent (if you pass in TRUE
- for the persistent parameter) and is floating. Also, since it's not
- based on FW_CFloatingWindow, it won't try to be shared by multiple
- instances of your part and it won't be automatically hidden when your
- part is deactivated.
-
- You could then provide some extension mechanism for sharing the palette
- between parts in the document if you wanted to.
-
- I don't know if this meets your needs, but it's another possiblility.
-
- _troy
-
- ......................................................................
- Troy Gaul tgaul@apple.com
- Apple Computer, Inc. OpenDoc Partsmith
-
-
-